import request from '@/utils/request'

// 查询水质监测数据列表
export function listDispatchWaterQualityMonitoringData(query) {
  return request({
    url: '/system/dispatchWaterQualityMonitoringData/list',
    method: 'get',
    params: query
  })
}

// 查询水质监测数据详细
export function getDispatchWaterQualityMonitoringData(waterQualityMonitoringDataId) {
  return request({
    url: '/system/dispatchWaterQualityMonitoringData/' + waterQualityMonitoringDataId,
    method: 'get'
  })
}

// 新增水质监测数据
export function addDispatchWaterQualityMonitoringData(data) {
  return request({
    url: '/system/dispatchWaterQualityMonitoringData',
    method: 'post',
    data: data
  })
}

// 修改水质监测数据
export function updateDispatchWaterQualityMonitoringData(data) {
  return request({
    url: '/system/dispatchWaterQualityMonitoringData',
    method: 'put',
    data: data
  })
}

// 删除水质监测数据
export function delDispatchWaterQualityMonitoringData(waterQualityMonitoringDataId) {
  return request({
    url: '/system/dispatchWaterQualityMonitoringData/' + waterQualityMonitoringDataId,
    method: 'delete'
  })
}
